import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path';
import glsl from 'vite-plugin-glsl'; // 导入 GLSL 插件

export default defineConfig({
  plugins: [vue(), glsl()],
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src'), // 设置 @ 为 src 目录
    },
  },
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
  server: {
    port: 8080,
    host: true,
    open: true
  }
})
